Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/pages/software/executables/[name].tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Layout } from "antd";67import { SoftwareEnvNames } from "@cocalc/util/consts/software-envs";8import ExecutablesTable from "components/landing/executables-table";9import Footer from "components/landing/footer";10import Head from "components/landing/head";11import Header from "components/landing/header";12import Image from "components/landing/image";13import { Paragraph, Title } from "components/misc";14import A from "components/misc/A";15import { Customize, CustomizeType } from "lib/customize";16import { withCustomizedAndSoftwareSpec } from "lib/landing/software-specs";17import { ComputeInventory } from "lib/landing/types";18import executablesScreenshot from "public/software/executables.png";19import { STYLE_PAGE, STYLE_PAGE_WIDE } from "..";2021interface Props {22name: SoftwareEnvNames;23index?: true;24customize: CustomizeType;25executablesSpec: ComputeInventory["executables"];26timestamp: string;27}2829export default function Executables(props: Props) {30const { name, customize, executablesSpec, timestamp } = props;3132function renderInfo() {33return (34<div style={{ maxWidth: STYLE_PAGE.maxWidth, margin: "0 auto" }}>35<Title level={1} style={{ textAlign: "center" }}>36Executables in CoCalc (Ubuntu {name})37</Title>38<div39style={{40width: "50%",41float: "right",42paddingBottom: "15px",43paddingLeft: "15px",44}}45>46<Image47src={executablesScreenshot}48alt="Terminal showing listing executables in CoCalc"49/>50</div>51<Paragraph>52This is a non-comprehensive list of executables available on CoCalc.53</Paragraph>54<Paragraph>55To run anything listed below, you need to either{" "}56<A href="/features/terminal">open a "Terminal"</A> or run the command57indirectly via a{" "}58<A href="/features/jupyter-notebook">Jupyter notebook</A>.59</Paragraph>60<Paragraph>61On CoCalc, you can also install or compile your own executable62binaries. You have a lot of control about your own project, which is a63containerized environment based on x86_64 Ubuntu Linux {name}.{" "}64</Paragraph>65</div>66);67}6869return (70<Customize value={customize}>71<Head title="Executables in CoCalc" />72<Layout>73<Header page="software" subPage="executables" softwareEnv={name} />74<Layout.Content style={{ backgroundColor: "white" }}>75<div style={STYLE_PAGE_WIDE}>76{renderInfo()}77<ExecutablesTable78executablesSpec={executablesSpec}79timestamp={timestamp}80/>81</div>82<Footer />83</Layout.Content>84</Layout>85</Customize>86);87}8889export async function getServerSideProps(context) {90return await withCustomizedAndSoftwareSpec(context, "executables");91}929394